<?php

//<editor-fold defaultstate="collapsed" desc="License & Copyright">
/*
 * @license
 */

/**
 *
 * @author Jevgeni Geimanen (jevgeni.geimanen@gmail.com)
 */
//</editor-fold>
class SCEnumHelper {
    /**
     *
     * @param string $className
     * @param string $regexp
     * @param array $collection 
     */
    public static function CollectEnumsFromClass($className,$preffix,&$collection) {
        $classRef = new ReflectionClass($className);
        $constants = $classRef->getConstants();
        foreach ($constants as $name=>$val) {
            print "$name\n";
            $collection[$name]=$val;
        }
    }
}

?>
